home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20000217-20000824 / 000115_news@columbia.edu _Tue Mar 14 16:33:10 2000.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA08284
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 14 Mar 2000 16:33:10 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id QAA12858
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 14 Mar 2000 16:10:05 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: jrc@lhutz.demon.co.uk
  10. Subject: Re: Sockets programming: telnet problem.
  11. Date: Tue, 14 Mar 2000 21:00:20 GMT
  12. Organization: Deja.com - Before you buy.
  13. Message-ID: <8am990$9jj$1@nnrp1.deja.com>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <8allt6$p76$1@newsmaster.cc.columbia.edu>,
  17. fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote:
  18. > In article <8ak6qk$qse$1@nnrp1.deja.com>, <jamescurry@my-deja.com> wrote:
  19. > : Ok, I'm attempting to write a (very) basic telnet client as an
  20. > : experiment. Actually, I'm using it to connect to various talkers,
  21. > : NUTS based which don't do very much in following the telnet protocol.
  22. > : (They seem to ignore or treat as CR any control codes, in fact the
  23. > : only code they ever DO seem to send is the echo control when it's
  24. > : time to enter a password).
  25. > : My program is sending data out in a character based manner (as soon
  26. > : as a key is pressed, sent it with write() over the socket) and
  27. > : reading in as much data as it can at once with read(), using select()
  28. > : to check if there is any data to be read on the socket. The problem
  29. > : is as follows: when a NUTS talker displays a prompt such as "give me
  30. > : a name:" on it's login screen, or COM> which is a command prompt, this
  31. > : line is NOT terminated by a carriage return, as it's a prompt and the
  32. > : user who is telnetting in is meant to make their input on the same
  33. > : line. However, these prompts simply aren't seen by my program. In
  34. > : fact, neither select() or read() are aware of the existence of this
  35. > : line until at least one character has been sent back the other way!
  36. > : Therefore, I don't see the "give me a name:" prompt until I press the
  37. > : first letter of my name, which then appears not to be displayed as
  38. > : the prompt appears on top of it. After reading through the details
  39. > : of the telnet protocol, I figured that maybe I needed to do something
  40. > : strange like send a GA code. But 255, 249 isn't recognised by the
  41. > : talkers, which appears to worsen matters.
  42. > : So HELP!!! What am I doing wrong? How can I get my program to see
  43. > : these unterminated prompts before it sends any output back to the
  44. > : server.
  45. > :
  46. > There really is no longer any reason for everybody to write their own
  47. > Telnet implementation from the ground up. It's all been done for you
  48. > already in C-Kermit:
  49.  
  50. Thanks!  While I will take a look at C-Kermit, I am still writing my
  51. ground up code simply for my own experience and sense of
  52. satisfaction.
  53.  
  54. I really am VERY curious as to what the probelm is and why I'm not
  55. seeing those prompts until after input, so I really would be very
  56. appreciative if someone could still answer my question via email
  57. (jrc@aardsets.com).
  58.  
  59. Thanks very much for the information, and rest assured, I WILL take
  60. a look at that, but I'm also determined to complete what I've started.
  61.  
  62.  
  63. Sent via Deja.com http://www.deja.com/
  64. Before you buy.